<!DOCTYPE html>
<html lang="zh-cn">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="/static/css/bootstrap.css?v=0923" rel="stylesheet">
<link href="/static/css/bootstrap-theme.css?v=0923" rel="stylesheet">
<link href="/static/css/dashboard.css?v=0923" rel="stylesheet">
<link href="/static/css/font-awesome.css?v=0923" rel="stylesheet">
<link href="/static/css/site.css?v=0923" rel="stylesheet">
<link href="/static/css/signin.css?v=0923" rel="stylesheet">
<script type="text/javascript">
function checkLogin(){
	var user = $("#user").val();
	if(!jQuery.trim(user)){
		alert("login_failed_username_null");
		$("#user").val("");
		$("#user").focus();
		return false;
	}
	var password = jQuery.trim($("#password").val());
	if(password.length < 4){
		alert("login_failed_password_null");
		$("#password").val("");
		$("#password").focus();
		return false;
	}
	return true;
}
</script>
<title>login</title>
</head>
<body>

<div class="container">
	<form class="form-signin" action="/admins/login" method="post" name="getaccount" >
		{% csrf_token %}
		<h2 class="form-signin-heading">登陆 </h2>
		<input type="text" name="user" autofocus="" required="" placeholder="用户名" class="form-control">
		<input type="password" name="password" required="" placeholder="密码" class="form-control">
		<button type="submit" class="btn btn-lg btn-primary btn-block" onclick="checkLogin()">登陆</button>
		<br>
		<p style="color: red">{{login_form}}</p>
	</form>
</div>
</body>
</html>
